<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'submenu.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<script type="text/javascript">
	function submitmenu(menuid, parentid) {
		$("#td_" + parentid).html(
				"<img src='<s:url value="/images/loding.gif"/>'></img>");
		$.ajax({
			type : "POST",
			url : "menu_sub_back.action",
			data : "parentid=" + parentid,
			success : function(msg) {
				$("#td_" + parentid).html(msg);
			}
		});
	}
</script>
</head>

<body>
	<s:if test="#request.menulist!=null&&#request.menulist.size()>0">
		<table>
			<s:iterator value="#request.menulist" var="me">
				<tr>
					<td><s:property value="#me.name" /></td>
					<td><img src='<s:url value="/images/edit.png"/>' onclick="" />
					</td>
					<td><a href="#"
						onclick="submitmenu('<s:property value="#me.menuid" />','<s:property value="#me.menu.menuid" />');">tijiao</a>
					</td>
				</tr>
			</s:iterator>
		</table>
	</s:if>
	<s:else>
		<font size="2.4px" color="red">没有子菜单显示</font>
	</s:else>
</body>
</html>
